//
//  DemoViewController.swift
//  LSWeibo1
//
//  Created by 李明禄 on 2018/12/4.
//  Copyright © 2018 SocererGroup. All rights reserved.
//

import UIKit

class DemoViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        navBarItem.rightBarButtonItem = UIBarButtonItem.init(
            title: "下一页",
            normalColor: .darkGray,
            highlightedColor: .orange,
            target: self,
            action: #selector(clickNext)
        )
        
        title = "第" + "\(navigationController?.children.count ?? 0)" + "个"

        // Do any additional setup after loading the view.
    }
    
    
    /// 点击下一个按钮
    @objc func clickNext() {
        
        print("点击了下一个")
        let vc = DemoViewController()
        navigationController?.pushViewController(vc, animated: true)
        
    }
    

    
}
